package com.huilian.iotbox.admin.wap.controller;

import com.huilian.iotbox.admin.wap.service.BaudService;
import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.vo.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author chenqiwen
 * @CreateDate: 2021-04-30-16-49
 * @Description:
 */
@RestController
@RequestMapping("/api/baud")
public class BaudController extends UserInfoController  {
    @Autowired
    private BaudService baudService;

    @GetMapping("/findAll")
    public ServerResponse findConsumeRecordByIdAndUserId(HttpServletRequest request){
        UserInfo userInfo = super.getLoginUserInfo(request);
        return baudService.findAll();
    }
}
